package com.nsoft.thickclient.trackMove;

import com.nsoft.thickclient.controller.ApplicationContest;
import com.nsoft.thickclient.controller.ApplicationController;
import com.nsoft.thickclient.theme.NSoftTheme;
import com.nsoft.thickclient.trackMove.menu.TrackMoveMenuBar;
import com.nsoft.thickclient.utils.IconFactory;
import com.nsoft.thickclient.utils.MessageUtilities;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		NSoftTheme.loadDefaultTheme();
		ApplicationContest applicationContest = new ApplicationContest(
				"Track Move");
		ApplicationController applicationController = new ApplicationController(
				applicationContest);
		applicationController.setIcon(IconFactory.getTruckIcon());
		applicationController.setMenuBar(new TrackMoveMenuBar(
				applicationController));
		MessageUtilities.controller = applicationController;
		IconFactory.controller = applicationController;
		applicationController.show();
		((TrackMoveMenuBar) applicationController.getMenuBar()).doLogin();

	}
}
